{php include wl_template('common/header');}
<ul class="nav nav-tabs" id="myTab">
	<li class="active">
		<a href="#">幻灯片管理</a>
	</li>
</ul>
<div class="app-content">
	<div class="app-filter">
		<div class="filter-action">
			<a href="{php echo web_url('pocket/Slide/operating')}" class="btn btn-primary">添加幻灯片</a>
		</div>
	</div>
	<div class="app-table-list">
		<div class="table-responsive">
			<table class="table table-hover table-bordered">
				<thead>
				<tr>
					<th class="text-center" style="width:60px;">图片</th>
					<th class="text-center" style="width:60px;">排序</th>
					<th class="text-center" style="width:100px;">标题</th>
					<th class="text-center" style="width:200px;">链接</th>
					<th class="text-center" style="width:50px;">状态</th>
					<th class="text-center" style="width:100px;">操作</th>
				</tr>
				</thead>
				<tbody>
				{loop $list $item}
				<tr class="text-center">
					<td>
						<img src="{php echo tomedia($item['img'])}" data-url="{php echo tomedia($item['img'])}" onerror="this.src='{php echo tomedia($item['img'])}'" class="scrollLoading" height="50px" width="100px" />
					</td>
					<td>
						{$item['sort']}
					</td>
					<td>
						{$item['title']}
					</td>
					<td  style="overflow: hidden;">
						{$item['url']}
					</td>
					<td>{php echo tpl_change_status('pocket/Slide/changeStatus&id='.$item['id'],$item['status'])}</td>
					<td class="text-center">
						<a href="{php echo web_url('pocket/Slide/operating',array('id'=>$item['id']))}">编辑 </a>
						-
						<a href="{php echo web_url('pocket/Slide/operating',array('did'=>$item['id']))}">删除 </a>

					</td>
				</tr>
				{/loop}
				</tbody>
			</table>
		</div>
		<div class="app-table-foot clearfix">
			<div class="pull-left">
				
			</div>
			<div class="pull-right">
				{$pager}
			</div>
		</div>
	</div>
</div>
{php include wl_template('common/footer');}